#ifndef __TEST3_H_
#define __TEST3_H_

#include <stdio.h>
#include <stdlib.h>

#define MAXNUM 10
#define Y   0
#define N   1

typedef int StackStatus;
typedef int StackElemType;
typedef struct SqStack
{
    StackElemType data[MAXNUM];
    int top;
} SqStack;

typedef struct StackNode
{
    StackElemType data;
    struct StackNode *next;
} StackNode;
typedef struct TopStack
{
    struct StackNode *top;
    int num;
} TopStack;

void test3(void);
void RPN_function(void);
StackStatus StackInit(SqStack   *stack);
StackStatus InStack(SqStack     *stack, StackElemType data);
StackStatus OutStack(SqStack    *stack, StackElemType *data);
StackStatus StackFree(SqStack   *stack);

StackStatus TopStackInit(TopStack   *topstack);
StackStatus InListStack(TopStack    *topstack, StackElemType data);
StackStatus OutListStack(TopStack   *topstack, StackElemType *data);
#endif // !__TEST3_H_



